ONE-TIME WINDOWS CHROME AUTHENTICATION SETUP

WHEN IS THIS REQUIRED?
----------------------
This component is optional for normal Windows downloads. Do NOT perform this
setup just to use YT Downloader.

Only perform this setup when YT Downloader displays the:
    "YouTube Sign-In Required"
message for a video because YouTube is asking for bot/sign-in verification,
and you have not already completed the one-time Chrome setup.

HOW TO SET UP
-------------
Double-click:
    Install-Chrome-Authentication.bat

Or run from PowerShell:
    .\Setup\Install-Chrome-Authentication.ps1

The setup script:
- builds the Native Messaging host;
- installs the host under %LOCALAPPDATA%\YT Downloader\ChromeAuth;
- registers the Native Messaging host in HKCU;
- copies the Chrome extension to the application folder;
- opens chrome://extensions;
- opens the extension folder in Explorer.

CHROME ONE-TIME STEP
--------------------
Because this is a locally supplied extension, Chrome requires the user to do
one one-time action: enable Developer mode and choose Load unpacked, then
select the extension folder shown by the setup script.

NORMAL USE AFTER SETUP
----------------------
Normal downloads remain no-cookie downloads. The extension is not required
for ordinary videos.

When YouTube returns a bot/sign-in challenge:
- YT Downloader shows a sign-in message and refers the user to README.txt;
- the user signs in to YouTube in Chrome;
- the extension automatically sends the refreshed YouTube/Google session;
- YT Downloader detects the session update;
- YT Downloader automatically retries;
- no Retry/Connect button is required.

The current wait window is 180 seconds. The user can simply leave the
YT Downloader queue check open while completing the Chrome sign-in.
